package com.example.quartz;

import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@EnableScheduling
public class TestQuartz {

    //每天凌晨执行
    @Scheduled(cron = "0 0 0 */1 * ?")
    public void test() {
        //每天凌晨判断...  是否已经有打印过两天后  进行归档

    }
}
